<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
    <style>
        .top{
            height: 80px;
            width: 100%;
            background-color: skyblue;
        }
        .top p{
            font-size: 30px;
            color: white;
            font-weight: 600;
            margin-left: 7.5%;
        }
        .top input{
            width: 85%;
            height: 30px;
            border-radius: 15px;
            margin-left: 7.5%;
            text-align: center;
            margin-top: 1.5%;
        }
        .bigpic{
            width: 100%;
            height: 80px;
        }
        .bigpic img{
            width: 85%;
            height: 80%;
            margin-left: 7.5%;
            margin-top: 2%;
        }
        .one{
            font-size: 20px;
            font-weight: 700;
            margin-left: 7.5%;
        }
        .paixu{
            width: 100%;
            height: 40px;
            display: flex;
            justify-content: space-around;
        }
        .paixu section{
            width: 20%;
            height: 40px;
            text-align: center;
            line-height: 40px;
        } 
        .paixu section:nth-child(1){
            font-weight: 600;
        }
        .paixu section.active{
           color: skyblue;
           font-weight: 900;
        }
        .an{
            width: 100%;
            height: 40px;
            margin-top: 10px;
            display: flex;
            justify-content: space-around;
        }
        .an section{
            width: 22%;
            height: 40px;
            text-align: center;
            background-color: gainsboro;
            border-radius: 8px;
            line-height: 40px;
        }

        #shop .shops {
            display: flex;
            justify-content: space-around;
            margin: 20px auto 20px;
        }

        #shop .shops img {
            display: block;
            width: 20%;
        }

        #shop .shops .store {
            width: 75%;
            font-size: 10px;
        }

        #shop .shops .store .datas {
            display: flex;
            justify-content: space-between;
        }
        #fd {
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
            height: 40px;
            text-align: center;
            background-color: #f5f5f5;
            line-height: 40px;
        }

        #fd .list {
            width: 30%;
        }

        #fd div.active {
            color: white;
            width: 25%;
            background-color: skyblue;
            font-size: 20px;
        }
    </style>
</head>
<body>
    <!-- 顶部 -->
    <div class="top">
        <p>饿了么</p>
        <input type="text" placeholder="Q 输入商家、商品名称">
    </div>
    <!-- 大图 -->
    <div class="bigpic">
        <img src="./img/微信截图_20221011194541.png" alt="">
    </div>
    <!-- 猜你喜欢 -->
    <p class="one">猜你喜欢</p>
    <!-- 综合排序 -->
    <div class="paixu">
        <section :class="{active: dianji == index}" @click="gaoliang(index)" class="btn" v-for="(item,index) in list">{{item.name}}</section>
    </div>
    <!-- 按钮 -->
<div class="an">
   <section v-for="(item,index) in arr">{{item.name}}</section>
</div>
<!-- 商家 -->
        <div id="shop">
            <div class="shops" v-for="(item,index) in shopArr">
                <img :src="item.pic" alt="">
                <div class="store">
                    <h2>{{item.name}}</h2>
                    <div class="staMth">
                        <span class="star">{{item.star}}</span>
                        <span class="mthShow">月售{{item.sales}}</span>
                    </div>
                    <div class="datas">
                        <div>
                            <span class="start">起送￥{{item.qs}}</span>
                            <span class="ps">配送￥{{item.moveMoney}}</span>
                        </div>
                        <div>
                            <span class="time">{{item.time}}分钟</span>
                            <span class="distance">{{item.distance}}km</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</section>
<div id="fd">
    <div :class="{active: currentIndex == index }" @click="handleClick(index)" class="list"
        v-for="(item,index) in fdArr">
        <div>{{item}}</div>
    </div>
</div>
</div>
</body>
<script src="./vue-2.5.21.js"></script>
<script src="./首页.js"></script>
</html>